package com.example.wan1.model;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

/***
 * 创建时间：2020/7/25 9:15
 * 创建人：10850
 * 功能描述：记录本地的用户的信息
 */
@Entity(nameInDb = "user")
public class UserBean {

    @Id(autoincrement = true)
    Long id;
    private String username;
    private String password;
    private int rank;
    private int coinCount;
    private int level;

    @Generated(hash = 717499550)
    public UserBean(Long id, String username, String password, int rank,
            int coinCount, int level) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.rank = rank;
        this.coinCount = coinCount;
        this.level = level;
    }

    @Generated(hash = 1203313951)
    public UserBean() {
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getRank() {
        return rank;
    }

    public void setRank(int rank) {
        this.rank = rank;
    }

    public int getCoinCount() {
        return coinCount;
    }

    public void setCoinCount(int coinCount) {
        this.coinCount = coinCount;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }
}
